package com.hzbank.dto;

import java.io.Serializable;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldIndex;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Document(indexName = "userindex", type = "user")
public class User implements Serializable {

	private static final long serialVersionUID = 1L;
	/** 编号 */
	@Id
	private Long id;
	/** 姓名 */
	@Field(index=FieldIndex.not_analyzed)
	private String name;

	/** 年龄 */
	private Integer age;

	/** 描述 */
	@Field(analyzer = "ik", searchAnalyzer = "ik_smart")
	private String description;
	/** 创建时间 */
	@Field(index = FieldIndex.not_analyzed)
	private String createtm;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getCreatetm() {
		return createtm;
	}

	public void setCreatetm(String createtm) {
		this.createtm = createtm;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
